<?php



class PaymentChecksInvoiceMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.PaymentChecksInvoiceMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(PaymentChecksInvoicePeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(PaymentChecksInvoicePeer::TABLE_NAME);
		$tMap->setPhpName('PaymentChecksInvoice');
		$tMap->setClassname('PaymentChecksInvoice');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('PAYMENT_IDEN', 'PaymentIden', 'VARCHAR' , 'payment_checks', 'PAYMENT_IDEN', true, 20);

		$tMap->addForeignPrimaryKey('CHECK_IDEN', 'CheckIden', 'VARCHAR' , 'payment_checks', 'CHECK_IDEN', true, 20);

		$tMap->addForeignPrimaryKey('INVOICE_IDEN', 'InvoiceIden', 'VARCHAR' , 'invoice', 'INVOICE_IDEN', true, 20);

		$tMap->addColumn('AMOUNT', 'Amount', 'DECIMAL', true, 18);

	} 
} 